package swta.model

import net.liftweb.mapper._

class Offer extends LongKeyedMapper[Offer] with IdPK {
  def getSingleton = Offer
  
  object bundleId extends MappedLongForeignKey(this, Bundle)
  object startTime extends MappedDateTime(this)
  object endTime extends MappedDateTime(this)
  object decrease extends MappedDouble(this)
  object boughtTime extends MappedDateTime(this)
  object boughtUid extends MappedString(this, 20)
}

object Offer extends Offer with LongKeyedMetaMapper[Offer] {
  override def dbTableName = "offers"
}